*Djankov,Freund and Pham. 2010. "Trading on Time", Review of Economics and Statistics, Vol 92, No 1: 166-173*
*TABLE 4 - Effect of Time Costs on Time-Sensitive Exports*

clear
cd "I:\TradingOnTime\"
use "Manufacturing",clear
sort id_e
merge id_e using "CapitalAbundance.dta"
drop if ln_time==.
drop _merge
destring code, replace
sort code
merge code using "KIntensity2_final.dta"
drop if _merge==2
drop _merge
sort code
merge code using "Hummels.dta"
drop if _merge==2
drop _merge
gen int_sk=ln(koverl)*ln(skin3_m)
gen int_ca=ln(hoverl)*ln(capint3_m)
gen int_time_dum3=ln_time*dum_p
gen ln_value=log(value)
tab id_e, gen(e)
tab code, gen(cd)
log using "Table4", replace
bootstrap, reps(500): reg ln_value e1-e123 cd1-cd25 int_sk int_ca int_time_dum3, robust cluster(id_e)
log close
